diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-15 17:47:40 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-15 17:47:40 +0100 |
| commit | a28cf885d5cac5d17bae7586ff88ea5e82bd70ff (patch) | |
| tree | 48ab084c5572eaec050e6f87d98c85b47c15d6aa /src/pages/[locale] | |
| parent | a25b3c13b1ac5c40e48cdf42baf4081dd33dcf9f (diff) | |
Removes unnecessary console log
Diffstat (limited to 'src/pages/[locale]')
| -rw-r--r-- | src/pages/[locale]/news/[...slug].astro | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pages/[locale]/news/[...slug].astro b/src/pages/[locale]/news/[...slug].astro index 815387f..e3b8b36 100644 --- a/src/pages/[locale]/news/[...slug].astro +++ b/src/pages/[locale]/news/[...slug].astro @@ -19,17 +19,13 @@ export async function getStaticPaths() { } } - const paths = (await getCollection('news')).map((entry) => ({ + return (await getCollection('news')).map((entry) => ({ params: { slug: entry.slug.replace('/', '-'), locale: localeFromSlug(entry.slug), }, props: { entry }, })); - - console.info('Paths: %s', JSON.stringify(paths)); - - return paths; } const { entry } = Astro.props; |
